package com.yun.dao;

import com.yun.pojo.RecycleFile;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FileDao {
    void insertFiles(@Param("filePath") String filePath, @Param("userName") String userName) throws Exception;

    void deleteFiles(@Param("userName") String userName) throws Exception;

    void deleteFile(@Param("fileId") int fileId, @Param("userName") String userName) throws Exception;

    List<RecycleFile> selectFiles(@Param("userName") String userName) throws Exception;

    RecycleFile selectFile(@Param("fileId") int fileId) throws Exception;

}
